﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建带属性的对象</title>
    <script language="javascript">
        var Person = new Object();      //创建对象
        Person.name = "张三";           //为对象添加属性
        Person.age = "26";
        Person.phone = "010-88888888";
        alert(Person.age );             //显示对象的属性值
    </script>
</head>
<body>

</body>
</html>